package com.crawler.pojo;

import java.util.Date;

/**
 * 前端入库数据实体
 *
 */
public class PageData {

    // id
    private Integer id;

    // 页面URL
    private String pageUrl;

    // 标题
    private String title;

    // 图片src
    private String photoSrc;

    // 下层url
    private String nextUrl;

    //记录创建时间
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhotoSrc() {
        return photoSrc;
    }

    public void setPhotoSrc(String photoSrc) {
        this.photoSrc = photoSrc;
    }

    public String getNextUrl() {
        return nextUrl;
    }

    public void setNextUrl(String nextUrl) {
        this.nextUrl = nextUrl;
    }

    public PageData(String pageUrl, String title, String photoSrc, String nextUrl, Date createTime) {
        this.id = id;
        this.pageUrl = pageUrl;
        this.title = title;
        this.photoSrc = photoSrc;
        this.nextUrl = nextUrl;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "PageUrl{" +
                "pageUrl='" + pageUrl + '\'' +
                ", title='" + title + '\'' +
                ", photoSrc='" + photoSrc + '\'' +
                ", nextUrl='" + nextUrl + '\'' +
                '}';
    }
}
